<template>
  <div class="admin_page">
    <el-card>
      <el-tabs>
        <el-tab-pane label="角色管理">
          <el-button class="add" type="primary">+ 新增角色</el-button>
          <el-table border>
            <el-table-column label="序号" width="160px">
              <template>
                <div>1</div>
              </template>
            </el-table-column>
            <el-table-column label="角色名" sortable width="160px" />
            <el-table-column label="描述" sortable />
            <el-table-column label="操作" class="handle" width="220px">
              <template>
                <div>
                  <el-button type="text">分配权限</el-button>
                  <el-button type="text">修改</el-button>
                  <el-button type="text">删除</el-button>
                </div>
              </template>
            </el-table-column>
          </el-table>
          <!-- 分页 -->
          <div class="footer">
            <el-pagination
              :current-page="1"
              :page-sizes="[1, 6, 10, 20]"
              :page-size="10"
              layout="total, sizes, prev, pager, next, jumper"
              :total="10"
            />
            <!-- @size-change="handleSizeChange"
              @current-change="handleCurrentChange" -->
          </div>
        </el-tab-pane>
        <el-tab-pane label="公司信息">
          <InfoItem />
        </el-tab-pane>
      </el-tabs>
    </el-card>
    <DialogItem />
    <!-- 权限分配 -->
    <RoleDialog />
  </div>
</template>

<script>
import DialogItem from './components/dialog-item.vue'
import InfoItem from './components/info-item.vue'
import RoleDialog from './components/role-dialog.vue'
export default {
  name: 'Setting',
  components: {
    DialogItem,
    InfoItem,
    RoleDialog
  },
  data() {
    return {
      isShow: false // 弹框显示隐藏
    }
  }
}
</script>

<style lang="scss" scoped>
.admin_page {
  padding: 20px;
  ::v-deep .el-tabs__item {
    font-size: 20px !important;
    // padding: 0 20px !important;
  }
  .add {
    height: 30px;
    line-height: 3px;
    margin: 30px 0 20px;
  }
  .footer {
    margin-top: 20px;
    text-align: right;
  }
  ::v-deep .el-table_1_column_4 {
    text-align: center;
  }
  // .el-button--text {
  //   padding: 0 5px !important;
  // }
}
</style>
